fix broken config, and no more static method for Config (which now is a singleton)