update referer version and fixed bugs