some modifications to remove the old references to the cython functions