* swap I/O to the new functions