support new file serialization
test file/image serialization