more sane path manipulation