use thread instead of processes to check streams