changed hub constructor parameters