start of a sending function
.o cleanup