updated I/O to use apache commons, integrated cache-control