several fixes and improvements to video playback