security api reorg