add tree-walking function. add location and physcat models.