fix bug: delete temp folder on exit
preview - wip