added config save support