move argparsing to main run routine