added logging
added more logs