fix loader for new config.json format