made RepositoryFactory more useful