work in progress, refactor in order to fix bug 1383729, only lightly test and only works for the single hazard curves and hazard maps