added DL7AD's changes to try and remove current tx bugs