add marshal info to file

add marshal info to file,so we can write it back