almost have windows version working