updated with path.sep for slashes