update self.connect to self.connect.child for pexpect part