set user agent correctly