small fixes, don`t encode failures twice. Validation script fixes