leak check queries as well