added error catching to syncMappings()