clean up of save configuration method