changed from hdf5 to RDS ; added safe guard against mutiple reads from hdf5