streams and thread modules