fix #32 handle multiple queries