added first implementation of notes handling