wip: cannot seem to fix ctypes error