add cname in source for generating