use __dirname instead of tmpdir, new readable-stream