renaming to mapCommand instead of listenToCommand