keep track of bytes read/written