add possibility to save a file as a stream
0.4.2