modify deploy_war for work with wars array