add mserr
add serr and msgtable