support complex mongo API queries