changed _constructServiceUrl to take substitution parameters