fixing connection for localhost