add config class. Successfull flush data to file.