loading/saving sketches: metadata is now written in cdata as json and loaded back so sketches can be fully restored.