Txt handler modified