ultralight patch - add support to dump card contents to file