auto warn script