add verbose flag to disable logging