move configuration to core, and add constants