revise mode enum method, add nlamb control