added global bool flag for verbose logging