renamed next_package to next_packet