adding cname and index