better txt parser