still problem with writing to hdf5