handle fetched data by writing it to file
remove log files