fixes to persistence and add APIs for haughtification/naughtification