integration referers with James framework