check for commands