adding debug log