fixed IO for runSim