make it work with packet