We modified the command rehash method to allow multiple command space