added optional root. removed it#reset