added debug to userAgent