save configuration, clean data