working on file i/o for cooler. not working yet...