improved logpipe