added a fix for win location use