label offsets, serialization, and deserialization now work. fixes #406