adding debug logs