do not access data[domain] anymore