adding support for packet statistics