silly mistake in get_refs