work on diagnosing the connection refused bug