extract script only and search location change