add foreststate as friend class of model