add user agent and break out referer