added the stuff from vidlibpersistancetests