simpler socket opening