make it possible to set nullptr root