move configuration to a separate class