restore endpoint implementation