bufferevent as pipe