added templates and source