update function calls in io.c