added request/userAgent logging