added safe-lookup-api-key