implement packet module to store fields as byte array