write .ipf to disk