redirect as a dependency