add pre-dependencies to template