handled case of no referer in headers