[debug] add some logging