drafting main i/o for batch files