simplify validator API