gaia and dwarfs implement go a step further
add TextFile to dwarfs
code optimize