changed calling conventions from stdcall to cdecl