HF: better logging