update config middleware