instead of passing a stream, accept just a filename. open the stream in the processor