no longer rewrites the entire config below the existing one(!) added forgotten local variables, removed unnecessary ones fixed a typo
oops