create new factory to refactor uri for different environments