add ability to set max number of links parsed