added mapping file munging