completed cors reworking