restruct, add read_inputs.cc