update endpoint mapping