add templates and static structure