add function to get data straight from hdf5