use Platform#warn() for warnings