integration package fixes for handling errorcodes