flatten master name at znode.