adding alliance handler, formatting