adding openmp support, slight changes to support