 		if typeof opts.options?.authorize == 'object'
 			query = opts.options.authorize
 		for name, value of authorize.query
-			param = @_replace_param value, @_params, state:state.id, callback:config.host_url+config.relbase, parameters
+			param = @_replaceParam value, @_params, state:state.id, callback:config.host_url+config.relbase, parameters
 			query[name] = param if param
 		query.oauth_token = responseParser.oauth_token
-		url = @_replace_param authorize.url, @_params, {}, parameters
+		url = @_replaceParam authorize.url, @_params, {}, parameters
 		url += "?" + querystring.stringify query
 		callback null, url
 

			if options.url[0] != '/'
				options.url = '/' + options.url
			options.url = oauthrequest.url + options.url
		options.url = @_replace_param options.url, @_params, parameters.oauthio, parameters

		# build query
		options.qs = {}
		options.qs[name] = value for name, value of req.query
		for name, value of oauthrequest.query
			param = @_replace_param value, @_params, parameters.oauthio, parameters
			options.qs[name] = param if param

		options.oauth =

			'accept-language':req.headers['accept-language']
			'content-type':req.headers['content-type']
		for name, value of oauthrequest.headers
			param = @_replaceParam value, @_params, parameters.oauthio, parameters
			options.headers[name] = param if param

		# build body
