starting to build templating and endpoints