update document repository to use new type