update config and format