add oldstate argument to inital rootf call