add blocos try catch