fixed a couple things. now query skeleton is working