some changes to createXHR prototype