implement trace aug path function, fix some index errors
altering the new function to actually perform the augmentation