Added .replacePaths for streams