socket bugs fixed