move subscribeEvent below loadConfiguration method