added support for storing and playing video