add template->render method and initiate
add server uri to global config