this might create files in a directory outside the working directory - when running in a node. while this is ok, i think it might be good to create these files inside the working directory.