fixed filepath bug - test on mac