make query calls async

enum?