added automatic referer support