faster and uglier text file conversions