changed paths to raw strings; base file in output dir