cython implementation ongoing