add txt reader logic