add debug logs