added option to load video file