now reading from original txt file, added debug shell