parameterize logging, allow 'quiet' operation