add autoconfiguration for windows