save temp file then read and parse to avoid socket close exception