added missing function to api