trim stuff
remove temp file