refactor so that the context of an endpoint gets hold of the messub node