rewrite of tempstuff en upload
rewrite of tempstuff en upload
update