add endpoint mapping