add self validate script