better parsing of script args.