register commands, check for their arguments