working on mac issue, added path expansion