add container logic to grid generator