added support for multiple queries in one request