add cortex support