add try catch to main