moved almost all checking of initial cmd input to init