added verbose logging