small changes
code clean up, attempting to fix transmit hang