final implementation new h5parm