added some more verbose logging