provides support for options.replace function

 allows to configure more flexible src-dest mapping