eliminate pointer warnings
cleanup of receive handler
moar cleanup of receive handler
send handler untested