move debug calls
move a query out of junk file