fixing security API