added support for txt data reading