adding debug logs.