various fixes to hub_gem for jirafe