change interface, supply $config only at validate()