generator library building, not working