changing retrieve script, adding fieldmap prep script.