add PersistenceOptions, separate header into .metadata file