mid-implementation of repository-related stuff