serialize config