added tracking of boundary boxes for each path