support cname in external engine