added hashtable to command factory