replace runmodes