add some [debug] logging