added logging again