get query hack