repaired config-loader