changed exec stuff to run on windows, too