first attempt at prerendering through our own api