updated repository factory
Merge pull request #111 from jackalope/fix_factory

updated repository factory