implementation of check-script search