stream usage in main thread