added user agent logging