add type master and query