implemented 64-bit payload length handling w/ optional threshold