settings: properly serialize the data to generate default values; add magic id at the beginning of data