support for socket and multiples instances on the same machine