write missing structures to file