changed to support new notes structure

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>