addDependency can now addsa collection of dependencies