refactored videostreamer