fixing some bug during first scrap + refactor API getLine(s) & getStop(s) code