nicer syntax for dependency condition hook