use better mapping tables, support multiple Relays