fixed security checker to work with commands