replace define.root behavior once