cleaned up packet sending accounting and debug output to be less verbose unless requested