working on refactoring the low level transmit code