add some logging to debug problem