got basic socket working