stream now expects a callback function