added procs and win32 threading