optimizations
enhance packet generation