add h5 and history support
remove h5