tweak h5 read write
add json metadata