Remove unused dependencies
Support redirection