correctly setting the user agent