fixes in hdf5 loader