unfinished refactoring of qrrepo