added more verbose logging