further work toward client side templating