update config rewite