add endpoint, add protocol logging