Upgrade

added logging