adapted interpreter to always execute 'when left' block when the current mode has changed