code dump from h5it, needs work