reading input model and writing input files works