update Main try catch