cmd arg parsing mostly done