add m:m by refTable handling