integrate rank and nprocs into arguments