fix controlserver stability issues
clean control server logic