finish argv parsing