fixed problem with get_stream and new API