added try catch around notes