added logging manually