changed to readable stream