rejects invalid commands and wrong directions