added parse file save logic