i/o optimizations