added logging
added logging