first workable version
remove temp files