add dependencies methods for templates