add support for mlt queries (+offline tests)