added logging
added more logging