made config file loading a bit safer