Improve "get" bemtree function