problem with the connect method