restructure event loop to avoid a goto
handle case of 0 definitions in record creation, for testing of list link construction and buffering
remove stale 'clean' spec from packet definition