add callback defs to Endpoint class