now streaming works but needs little refinement and testing.