fixed checking commands