getRedir works. can now identify redirection type and filename