add exception for no redirect input