add validator code for obf files