fix main switch problem, disable serial output