detect external scripts