add templates and related libraries