tidy up the addCommand method