setupHasJoin after construction. remove unused variable, $name.