clean up homesocket code