add note about multipacket
make malloc return value check optional