first stage of tquery.mirror