much cleaner LES conversion and some read/write improvements