added parsePath function, tested, seems to work excep for one of the paths is one of those weird boxes with 0 0 0 1 in it