do not pass part file stream as argument to avoid memory consumption

not sure that it works