move resolution to config.resolve