added video functions and migration