replaced riemann client with socket