added try catch to proble stuff on produciotn.