fixes error hints; ctx -> cortex