added query finding debugging