update config&writer