Updates

fixes for new stream api and promise api