bugfixes, persistency and RPCs