added support for cname