rewriting from welten-based to sockethub-based