fix #13 output buffering not working during execution