add simple cname logic