use name to find the correct generator