debug queries