return extension gen to generate api too