ENH: added logging