ported SourceRemapper, thanks Samrg UNTESTED