small improvements and added support for likeposix sockets