cleanup socket codes
fill candidate state