change groovy to check secure script