add some missing function declarations