nearly working
fixed some win32 bugs
added function to test new go bug