added debugging to determine if queries are actually submitting