made some minor changes to get the multimode sim to work.
 further mods for multimode sim to work