add templates and stuff