if it exists, run send-socket-count after registering
send socket count after registering with tui/gui
fix typo when merging