change ctlserver logic