added socket version option