updated tree interface  to lua
small updates