added avx/avx2 option