fixed tree & path gen, need to flatten and write compressed