added --quiet option to disable logging