debugging dbnearest