handle multiple packets at once