use writable stream for logging