restored server main