add logging
update