security check of every script before execution