start of server-side support for length'ed packets