adding use state to observations. not finished yet. #91