get and payload for queries