added logging
update logger