more diagnostic logging to avoid ratholes