updated to reflect changes in instancegenerator