read/write to mtable/errortable