improve (and debug) switch between jmpress et other modes