simplified send and fix bindSocket