support writing CDS as extension too