parse the command