changing path.Join to filepath.Join for better cross-platform compatibility