changed ref finding
removed some email spam; fixed chat bug