properly set config after loading from file