extended version of pyramid_repo