06/13/14 ai added try-catch to smooth up the process