added try catch to track down bug