removed restartServer loop