merge API example and prerendering funcitonality