reenable serialization in saveToDisk