updated for utils.getRedirect