moved config stuff from core to config