modifying preach so that it exits if REFSAME