fixing SIMULATION_MODE