Update prepareArgs from errmsg to name