working on memory leaks

removed send functionality