support for dynamic packet buffer size