close files
get all structures