replaced file paths with path.joins for full compatibility