merged try catch