fix bug in argument parser
added parallelization feature