added support for custom routing, added asyncQuery for aggregated queries