implement hashmap for commands