hxstream: ivory implementation

  (still need to test).