get clear button working
remove creation of temporary files