updated marc2ds to use more repo functions