added "key" authentication method