support custom user agent in config.