add some extra logging for helping to debug strange situations