patched ctools