wrap try catch