renamed process_input to run_external_cmd and filter_input to process_input