update file with dump()