added socket encapsulation