update connect and listener