hub: more tets
debug code + some fixes