wrap shared_repository global in get/set accessors