add some logging to figure out what's going on