fiddling with socket connection