moved stuff from core to config.cpp