memory shadowing works properly in the simulator now