refactor cdrom code a bit