added logging

added logging