parse the command a bit