clean + add pre rendering mode