psudocoded classicdvd stuff