implement C/S mode of Simulation