here's a broken method using readfull
think it works
buffer logfile writes
tweaks