add a bit of debugging info in callback