remove unused extended
implement cl compatibility flag