relay: add missing function