set runtime mode