fallback to file.size