add failOnWarning options, which defaults to true