adding constructor refs by name and type'