given a key and a source, uses a config file to generate the appropriate destination.