[twink]add config check