modified so it will run again in windows... derp