added the commands to a map