add establishConnection method