continuing refactoring, need to fix the video segment handling, decouple plot logic from video handling