add version byte to the tree file