fixed read/write gts file
autogen.sh