model class and win32 fix!!!