some error checking, win32 guards
win32 files
win32 files