added groovy query engine