cleaned a binary
socket calls and select.