switch back to c version, because python version is not stable enough