make update and fix some associated mis-matched error codes