make verbose logging optional