minor work cleaning up packet stuff