refactored coreInitializer