redo  to server micro templating