basic socket working