errmsg, general fix, migration