added multi-input processing to Preprocessor