--added one more try catch to avoid 500