new implementation of FileValidator