add referrer function to request class