endpoint mapping