add early termination and no parsing links if don't include outside files and -n number is reached