use multiprocessing for streaming