add ag support for windows