try to fix situation when service is down and not responding. this version is far from complete but working