Hopefully finally solved socket problems