this will fail if self.class.dependencies is nil