support callback + printWarnings export