redirection now works on existing files