add querymap & querystruct for tx