renamed a couple things to prevent Win32 API name clashes