update config and header