update client to add stats in mongo, add API call to get the a socket
resolve conflicts