small adjustments around I/O