added default config and save config methods