add level dos switching