add new war function to the script