extract parseArgs