added the compatibility with err 2