add logging via debug