added some debug printouts to objectquery