added robustness for hfmonitor.pp