add openmp and globalpairrefine