added support for different dungeon gateways