check connection moved to the public methods