add protocol defines