add some extra logging