add resources, templates and chunks