Update ls and add clear_sockets