add try/catch/finally