add templates and depends sources