changed order of things in PexelCore.onEnable