fixing connection issues