added to connect()