added prerendering and effects