add debug lines in cache agent