server main .. bad attempt at timeout