NIO broke builds - replacing with traditional java i/o