add validator and file config