add some logging to debug