use empty string if referer is undefined