added some debugging to track down query issue