add a socket listener for inspect