correctly handle and merge the masstable.