need to work on std stream buffering
buffering works!