adding template and first api