extract ExternalTreeEntry class
mark usage of externals