changed filterStream, file writes to disk