update error handling in ipns