miniSim improved, not working yet