adding referer support in retrying