added io.c to try and make rl work