moved ServerThread to control Layer