added code for supporting storing of notes