only create packet once and re-use
switch to autoconf/automake