got socket working