using path.join instead of filepath.join for consistency