make plots server-side