connect server main also without exceptions