some code from a map and loadout tool used by a DZ server provider