move windows code out of main body; add temporary 18 parameter call (windows)