changed code structure; reports zero values in case proxy is down