add support for debug queries