[PD-dev] buffer resizing