add hooks to override origin and destination addresses