generator: build generators on the fly for better performances