tweaking inout for more general input files