replace multy-catch