- added option for unbuffered output