add create video function; and test