Abstract. Poloidal magnetic flux variations allowed observation of transitions between different confinement modes in the TUMAN-3M tokamak. The possibility of switching on/off the ohmic H-mode by edge poloidal magnetic flux perturbations has been found. The flux perturbations were created by fast current ramp up/down or by magnetic compression/decompression. Various mechanisms involved in the L-H and H-L transition physics in the flux perturbation experiments were analyzed. The transitions might be understood in the terms of a model of a sheared radial electric field generation. In a separate set of experiments the core electron confinement improvement was observed. Variation of the rates of current ramp up and working gas puffing in the beginning of a discharge resulted in a fast increase in the electron temperature near the axis. The confinement improvement is apparently connected with the rate of current ramp. Deviation from the optimal rate results in disappearance of the observed phenomenon. Possible explanation of the core electron confinement improvement is the formation of magnetic shear profile favourable for turbulence damping.