allow a custom transform to be applied to the path