support for multiple models in writedcd.m