add endpoint sub generator
inject registration of socket and route for new endpoints