fix var params, added tree farm example