updated afterconnect