limit openblas threads + minor fixes