correctly handle old config files
correctly overwrite values of wrong type