added deactivaed devices
added sim.c etc