split up config.cpp into seperate files based on unit being defined