adds ability to use a transform function to fix paths