minor fix - socket not saved