script needed to run HMP datacards