figured out how to use metadata in repair (by myself tyvm) =p