using normally buffered IO in pug.c