add set user agent method