"buffered output almost working now"