added detect scripts