proper use of the stdlib + remove temporary folder when done with it