add error handling for unreachable servers