stuff to get out the problem queries