added optional path to save, so can save different settings.xml