some debugging on retrevial