added GenState to save Tree generator state