add a init cap to packet Writer