add Config, simple preprocess framework