lots of encoding nonsense