made makeWAR() smarter