added repo factory
moved to webapi2