various improvements to hubs and a script to rebuild them all safely as root