fix some remainign deprecated send()