fixed a bunch of bugs and and made the reduction of recursive access paths optional