fix io.c to output haps or calls