moved facegen generation code