fix use of config.location