added missing function prototypes to get rid of warnings
compiles