move prerender to its own object