make metadata file creation work for both selection and reference list populations...