added try/catch to be safe