remove useless command checks