validate: add config file support