You might need to set $search_friendly to 0 in each of the scripts to disable the search engine friendly style URLs if those are causing a problem.