change the calls to rewriteConfig commit
Remove call to readConfig