adding support for packets