fix up refs