change `filename` to `path`