allow callback to modify paths