both src and dest are rewritten correctly