updated tree and other scripts