added logging 4